<form class="form-horizontal" name="CtrlForm" role="form" novalidate="novalidate" ng-submit="submit()" ng-controller='MailEditCtrl'>
	<div class="form-group has-feedback">
	  <label class="col-md-2 control-label">SMTP服务器</label>
	  <div class="col-md-6">
		<input type="text" class="form-control" placeholder='SMTP服务器 以163邮箱为例' ng-model='config.MAIL_HOST'>
	  </div>
	</div>

	<div class="form-group has-feedback">
	  <label class="col-md-2 control-label">邮件发送端口 </label>
	  <div class="col-md-6">
		<input type="text" class="form-control" placeholder='邮件发送端口' ng-model='config.MAIL_PORT'>
	  </div>
	</div>
	
	<div class="form-group has-feedback">
	  <label class="col-md-2 control-label">邮箱地址 </label>
	  <div class="col-md-6">
		<input type="text" class="form-control" placeholder='邮箱地址' ng-model='config.MAIL_USERNAME'>
	  </div>
	</div>
	
	<div class="form-group has-feedback">
	  <label class="col-md-2 control-label">邮箱密码 </label>
	  <div class="col-md-6">
		<input type="text" class="form-control" placeholder='邮箱密码' ng-model='config.MAIL_PASSWORD'>
	  </div>
	</div>
	
	<div class="form-group has-feedback">
	  <label class="col-md-2 control-label">发件人姓名 </label>
	  <div class="col-md-6">
		<input type="text" class="form-control" placeholder='发件人姓名' ng-model='config.MAIL_FROMNAME'>
	  </div>
	</div>


   <div class="form-group has-feedback">
      <div class="col-md-offset-2 col-md-6">		
        <button type="submit" class="btn btn-primary" ng-disabled="CtrlForm.$invalid">保存</button>
      </div>
   </div>
</form>